package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterReservecondCreateRequest struct {
	/*
	   主动预约开通条件     */
	RocList *[]domain.TmallServicecenterReservecondCreateReserveOpenConditionDTO `json:"roc_list,omitempty" required:"false" `
}

func (s *TmallServicecenterReservecondCreateRequest) SetRocList(v []domain.TmallServicecenterReservecondCreateReserveOpenConditionDTO) *TmallServicecenterReservecondCreateRequest {
	s.RocList = &v
	return s
}

func (req *TmallServicecenterReservecondCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.RocList != nil {
		paramMap["roc_list"] = util.ConvertStructList(*req.RocList)
	}
	return paramMap
}

func (req *TmallServicecenterReservecondCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
